.prompt-editor-container {
  position: relative;
  width: 100%;
}

.prompt-editor-container.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fff;
}

.prompt-editor-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prompt-editor-card .ant-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.template-name {
  color: #1890ff;
  font-weight: normal;
  font-size: 14px;
}

.unsaved-indicator {
  color: #faad14;
  font-size: 18px;
  margin-left: 8px;
}

.editor-info-bar {
  padding: 8px 16px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
}

.detected-variable {
  padding: 2px 8px;
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 4px;
  color: #1890ff;
  cursor: pointer;
  transition: all 0.3s;
}

.detected-variable:hover {
  background: #bae7ff;
  border-color: #40a9ff;
}

.warning-icon {
  color: #faad14;
}

.warning-text {
  color: #faad14;
}

.editor-wrapper {
  flex: 1;
  overflow: hidden;
}

.editor-status-bar {
  padding: 4px 16px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
  color: #595959;
}

/* Monaco Editor 自定义样式 */
.monaco-editor .margin {
  background-color: #f5f5f5 !important;
}

.monaco-editor .monaco-editor-background {
  background-color: #ffffff !important;
}

.monaco-editor .line-numbers {
  color: #999999 !important;
}

/* 变量高亮 */
.monaco-editor .mtk8 {
  color: #ff6b6b !important;
  font-weight: bold;
}

/* 代码提示样式 */
.monaco-editor-suggest-widget {
  border: 1px solid #e8e8e8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.monaco-editor-suggest-widget .monaco-list-row.focused {
  background-color: #e6f7ff !important;
}

/* 滚动条样式 */
.monaco-editor .decorationsOverviewRuler {
  width: 10px !important;
}

.monaco-editor .scroll-decoration {
  box-shadow: none !important;
}

/* 选中文本样式 */
.monaco-editor .selected-text {
  background-color: #d1e7fd !important;
}

/* 查找替换样式 */
.monaco-editor .find-widget {
  background-color: #f0f2f5 !important;
  border: 1px solid #d9d9d9 !important;
}

/* 错误提示样式 */
.monaco-editor .squiggly-error {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23ff5252'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%201.4%2C3%200%2C1.4'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left !important;
}

/* 警告提示样式 */
.monaco-editor .squiggly-warning {
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23ffc107'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%201.4%2C3%200%2C1.4'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") repeat-x bottom left !important;
}

/* 括号匹配高亮 */
.monaco-editor .bracket-match {
  background-color: rgba(0, 100, 200, 0.1) !important;
  border: 1px solid rgba(0, 100, 200, 0.3) !important;
}

/* 当前行高亮 */
.monaco-editor .current-line {
  background-color: rgba(24, 144, 255, 0.05) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .editor-info-bar {
    font-size: 11px;
  }
  
  .editor-status-bar {
    font-size: 11px;
  }
  
  .detected-variable {
    padding: 1px 6px;
    font-size: 11px;
  }
}